package action;

import com.baizhi.service.UserService;
import com.baizhi.service.impl.UserServiceImpl;

public class UserAction {
    private String name;
    private String pwd;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public String Logins(){
        UserService a=new UserServiceImpl();
        boolean login = a.Login(name, pwd);
        System.out.println(pwd);
        System.out.println(name);
        System.out.println(login);
        if (login){
            return "sucess";
        }else{
            return  "default";
        }
    }
}
